/**
 * 通用方法
 */

import http from '../http'

/**
 * 获取菜单
 */
const getmenu = (param) => http.post('commons/getmenu', param)

/**
* 获取可用编号
*/
const getcode = (param) => http.post('commons/getcode', param)

/**
* 文件上传
*/
const upload = (param) => http.post('commons/upload', param)

/**
* 获取上一次信息
*/
const getLastUser = (param) => http.post('goods/getLastUser', param)

/**
* 获取单价记录
*/
const getgoods = (param) => http.post('goods/getgoods', param)

/**
* 扫码获取商品
*/
const getgoodsinfo_c = (param) => http.post('goods/getgoodsinfo_c', param)

export default {
  getmenu,
  getcode,
  upload,
  getLastUser,
  getgoods,
  getgoodsinfo_c
}
